package cn.yyx.financeservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author sun
 * @since 2023-10-25
 */
@ToString
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_finance")
@ApiModel(value="Finance对象", description="")
public class Finance implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "支付id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;
    @ApiModelProperty(value = "经办人编号")
    private String operatorId;
    @ApiModelProperty(value = "支付人")
    private String payName;
    @ApiModelProperty(value = "支付图片")
    private String payImg;
    @ApiModelProperty(value = "支出事由")
    private String reason;

    @ApiModelProperty(value = "支付金额")
    private String amount;

    @JsonFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "支付时间")
    private Date payDate;

    @ApiModelProperty(value = "支付方式")
    private String payType;

    @ApiModelProperty(value = "备注")
    private String note;

//    @JsonFormat(pattern = "yyyy-MM-dd")
//    private Date start;
}
